import { createSlice, PayloadAction } from '@reduxjs/toolkit';
interface stateObj {
    brokersActiveId: string;
}
const initialState: stateObj = {
    brokersActiveId: '',
};

export const stateSlice = createSlice({
    name: 'state',
    initialState,
    reducers: {
        setBrokersActiveId: (state, action: PayloadAction<string>) => {
            state.brokersActiveId = action.payload;
        },
    },
});

export const { setBrokersActiveId } = stateSlice.actions;

export default stateSlice.reducer;
